<div class='right-cont right-cont-less' ng-controller='RadioEveningList'>
	<div class='title'>晚间电台<i class='fa fa-spinner fa-spin' ng-if='loading'></i></div>
	<div class='content'>
		<div class='box-ops'>
            <button class='btn btn-primary' ng-click='add_item()'>添加</button>
        </div>
        <div class='box-list'>
            <table class='table table-list'>
                <tr>
                    <td>电台ID <span class='fa fa-sort'></span></td>
                    <td>标题<span class='fa fa-sort'></span></td>
                    <td>标题II<span class='fa fa-sort'></span></td>
                    <td>横幅<span class='fa fa-sort'></span></td>
                    <td>声音I时长<span class='fa fa-sort'></span></td>
                    <td>声音II时长<span class='fa fa-sort'></span></td>
                    <td>上传时间<span class='fa fa-sort'></span></td>
                    <td>上线时间<span class='fa fa-sort'></span></td>
                    <td>变更时间<span class='fa fa-sort'></span></td>
                    <td>状态<span class='fa fa-sort'></span></td>
                    <td>操作<span class='fa fa-sort'></span></td>
                </tr>
                <tr ng-repeat='item in list'>
                    <td>{{item.id || '未知'}}</td>
                    <td>{{item.sim_title || '未知'}}</td>
                    <td>{{item.sim_title_ii || '未知'}}</td>
                    <td><a href='{{item.banner}}' target='_blank'>查看</a></td>
                    <td>{{item.audio_time || 0}}``</td>
                    <td>{{item.audio_ii_time || 0}}``</td>
                    <td>{{item.create_date || '未知'}}</td>
                    <td>{{item.online_date || '未知'}}</td>
                    <td>{{item.update_date || '未知'}}</td>
                    <td>
                        <span class='label label-success' ng-if='item.status == 1'>
                            {{item.status_text || '未知'}}
                        </span>
                        <span class='label label-warning' ng-if='item.status == 0'>
                            {{item.status_text || '未知'}}
                        </span>
                    </td>
                    <td>
                        <button class='btn btn-primary btn-xs btn-w-xs' ng-click='get_item(item)'>编辑</button>
                        <button class='btn btn-danger btn-xs btn-w-xs' ng-click='update_item(item.id, {"status" : -1})'>删除</button>
                    </td>
                </tr>
            </table>
            <div class='box-page' ng-bind-html='pageHtml'></div>
        </div>
	</div>

	<!-- 电台添加模态窗 -->
	<div class='modal fade add-radio'>
        <div class='modal-dialog'>
            <div class='modal-content' align='center'>
                <div class='modal-header'>
                    晚间电台添加
                    <a class='close' data-dismiss='modal'>&times;</a>
                </div>
                <div class='modal-body'>
                    <table class='table-form'>
                        <tr>
                            <td class='td-label'>电台标题:</td>
                            <td colspan='3'>
                                <input type='text' class='form-control' ng-model='aItem.title'>
                            </td>
                        </tr>
                        <tr>
                            <td class='td-label'>上线时间:</td>
                            <td colspan='3'><input type='text' class='form-control input-date' ng-model='aItem.online_date'></td>
                        </tr>
                        <tr>
                            <td class='td-label'>标题 II:</td>
                            <td colspan='3'>
                                <input type='text' class='form-control' ng-model='aItem.title_ii'>
                            </td>
                        </tr>
                        <tr>
                            <td class='td-label'>电台横幅:</td>
                            <td colspan='2' class='td-banner'>
                                <img ng-src='{{aItem.banner}}'>
                            </td>
                            <td>
                                <div class='box-upload'>
                                    <button class='btn btn-primary btn-upload-show'>上传</button>
                                    <button class='btn-upload' id='upload-banner'></button>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class='td-label'>声音 I:</td>
                            <td colspan='2'>
                                <span ng-if=' aItem.audio'>已上传</span>
                                <span ng-if='!aItem.audio'>未上传</span>
                            </td>
                            <td>
                                <div class='box-upload'>
                                    <button class='btn btn-primary btn-upload-show'>上传</button>
                                    <button class='btn-upload' id='upload-audio'></button>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class='td-label'>声音II:</td>
                            <td colspan='2'>
                                <span ng-if=' aItem.audio_ii'>已上传</span>
                                <span ng-if='!aItem.audio_ii'>未上传</span>
                            </td>
                            <td>
                                <div class='box-upload'>
                                    <button class='btn btn-primary btn-upload-show'>上传</button>
                                    <button class='btn-upload' id='upload-audio-ii'></button>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class='modal-footer'>
                    <button class='btn btn-primary btn-sm btn-w-sm' ng-click='add_item(aItem)'>确认</button>
                    <button class='btn btn-default btn-sm btn-w-sm' data-dismiss='modal'>取消</button>
                </div>
            </div>
        </div>
    </div>

    <!-- 电台编辑模态窗 -->
    <div class='modal fade edit-radio'>
        <div class='modal-dialog'>
            <div class='modal-content' align='center'>
                <div class='modal-header'>
                    晚间电台编辑
                    <a class='close' data-dismiss='modal'>&times;</a>
                </div>
                <div class='modal-body'>
                    <table class='table-form'>
                        <tr>
                            <td class='td-label'>电台标题:</td>
                            <td colspan='3'>
                                <input type='text' class='form-control' ng-model='nItem.title'>
                            </td>
                        </tr>
                        <tr>
                            <td class='td-label'>标题 II:</td>
                            <td colspan='3'>
                                <input type='text' class='form-control' ng-model='nItem.title_ii'>
                            </td>
                        </tr>
                        <tr>
                            <td class='td-label'>电台横幅:</td>
                            <td colspan='2' class='td-banner'>
                                <img ng-src='{{nItem.banner}}'>
                            </td>
                            <td>
                                <div class='box-upload'>
                                    <button class='btn btn-primary btn-upload-show'>上传</button>
                                    <button class='btn-upload' id='upload-banner-edit'></button>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class='td-label'>声音 I:</td>
                            <td colspan='2'>
                                <span ng-if=' nItem.audio'>已上传</span>
                                <span ng-if='!nItem.audio'>未上传</span>
                            </td>
                            <td>
                                <div class='box-upload'>
                                    <button class='btn btn-primary btn-upload-show'>上传</button>
                                    <button class='btn-upload' id='upload-audio-edit'></button>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class='td-label'>声音II:</td>
                            <td colspan='2'>
                                <span ng-if=' nItem.audio_ii'>已上传</span>
                                <span ng-if='!nItem.audio_ii'>未上传</span>
                            </td>
                            <td>
                                <div class='box-upload'>
                                    <button class='btn btn-primary btn-upload-show'>上传</button>
                                    <button class='btn-upload' id='upload-audio-edit-ii'></button>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class='modal-footer'>
                    <button class='btn btn-primary btn-sm btn-w-sm' ng-click='update_item(nItem.id, nItem)'>确认</button>
                    <button class='btn btn-default btn-sm btn-w-sm' data-dismiss='modal'>取消</button>
                </div>
            </div>
        </div>
    </div>
</div>